package com.usian.admin.feign;

import com.usian.model.article.pojos.ApArticle;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * ClassName: ApArticleClient
 * Author:   WGG
 * Date:    2022-11-2022/11/23-20:11
 * Version: 1.0
 * Description:
 */
@FeignClient("leadnews-article")
public interface AdArticleClient {
    @PostMapping("/article/api/v1/article/saveArticle")
    public ApArticle saveArticle(@RequestBody ApArticle apArticle);

    @GetMapping("/article/api/v1/article/findArticle")
    public List<ApArticle> findArticle();


}
